//
//  WMMeetingSimpleTableView.m
//  witMorning
//
//  Created by Mac mini on 2018/1/4.
//  Copyright © 2018年 zt. All rights reserved.
//

#import "WMMeetingSimpleTableView.h"
#import "WMMeetingSimpleTableViewCell.h"
@implementation WMMeetingSimpleTableView

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 50;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    static NSString *identifier = @"single";
    WMMeetingSimpleTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (!cell) {
        cell = [[WMMeetingSimpleTableViewCell alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, 50)];
        cell.lab.text = self.array[indexPath.row];
        
    }
    return cell;
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    if(self.simpleCallBack){
        self.simpleCallBack(indexPath.row);
    }
}

@end
